package com.chinasoft.goodsManager.service;

import com.chinasoft.goodsManager.domain.Goods;
import com.chinasoft.goodsManager.domain.Manager;

public interface LoginService {
    void transferDatabase();//初始化redis数据库

    boolean findMUserName(String musername);

    boolean findMEmail(String memail);
    //添加新管理者
    void addNewManager(String musername, String memail, String mpassword);

    Manager fandUsernameAndPassword(String musernameOrMemail, String mpassword);

    Manager updateManagerInformation(Manager manager, String mname, String mage, String mcity, String maddress, String mphone);

    Manager updateManagerImg(String filename, Integer id);

    Goods findGoodsById(Integer id);

    void addGoods(Goods goods);

    void updateGoods(Goods goods);
}
